package com.bocloud.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

/**
 * 界面跳转控制器
 * 
 * @author lkx
 *
 */
@Controller
@RequestMapping("/")
public class IndexController {

	/**
	 * 跳转 到主页
	 * 
	 * @return
	 */
	@RequestMapping("/")
	public ModelAndView index() {
		return new ModelAndView("/index.do");
	}

	/**
	 * 跳转到swagger界面
	 * 
	 * @return
	 */
	@RequestMapping("/swagger")
	public ModelAndView swagger() {
		return new ModelAndView("/swagger/index.html");
	}

	/**
	 * 跳转到admin界面
	 * 
	 * @return
	 */
	@RequestMapping("/admin/**")
	public ModelAndView admin() {
		return new ModelAndView("/admin.do");
	}
}
